package com.neoCalf.neoGroup.feigns;

import com.neoCalf.neoCommon.model.R;
import com.neoCalf.neoCommon.model.vo.UpLoadImageVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;


/**
 * @author 小牛
 * @version 1.0
 * @description TODO
 * @date 2025/4/15 22:33
 */
@FeignClient(value = "fileService", path = "/api")
public interface FileServiceFeign {
    @PostMapping("/upload/image")
    R<UpLoadImageVo> uploadImage(@RequestParam("image") MultipartFile image);

    @PostMapping("/upload/image/delete")
    R<String> deleteImage(@RequestParam("url") String url);
}
